package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ZhikuMapper;
import com.zch.dao.model.Zhiku;
import com.zch.dao.model.ZhikuExample;
import com.zch.daoEx.ZhikuMapperEx;
import com.zch.daoEx.model.ZhikuEx;

@Service
public class ZhikuService {
	@Autowired
	private ZhikuMapper zhikuMapper;
	
	@Autowired
	private ZhikuMapperEx zhikuMapperEx;

	public int countByExample(ZhikuExample example) {
		return this.zhikuMapper.countByExample(example);
	}

	public Zhiku selectByPrimaryKey(String id) {
		return this.zhikuMapper.selectByPrimaryKey(id);
	}

	public List<Zhiku> selectByExample(ZhikuExample example) {
		return this.zhikuMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.zhikuMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Zhiku record) {
		return this.zhikuMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Zhiku record) {
		return this.zhikuMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ZhikuExample example) {
		return this.zhikuMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Zhiku record, ZhikuExample example) {
		return this.zhikuMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Zhiku record, ZhikuExample example) {
		return this.zhikuMapper.updateByExample(record, example);
	}

	public int insert(Zhiku record) {
		return this.zhikuMapper.insert(record);
	}

	public int insertSelective(Zhiku record) {
		return this.zhikuMapper.insertSelective(record);
	}
	
	public List<ZhikuEx> selectList(Map<String, Object> map) {
        return this.zhikuMapperEx.selectList(map);
    }   

	public ZhikuEx selectDetailById(String id)
	{
		return this.zhikuMapperEx.selectDetailById(id);
	}
}
